package org.jeecg.cn.edu.scau.vm.review.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("vm_schedule")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "vm_schedule", description = "用户特殊配置审核")
@AllArgsConstructor
@NoArgsConstructor
public class VmSchedule implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private java.lang.String id;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    @TableField("create_by")
    private java.lang.String createBy;
    /**
     * 创建日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    @TableField("create_time")
    private LocalDateTime createTime;
    /**
     * 更新人
     */
    @TableField("update_by")
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
    /**
     * 更新日期
     */
    @TableField("update_time")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private LocalDateTime updateTime;
    /**
     * 所属部门
     */
    @TableField("sys_org_code")
    @ApiModelProperty(value = "所属部门")
    private java.lang.String sysOrgCode;
    /**
     * 审核工单号
     */
    @ApiModelProperty(value = "审核工单号")
    private java.lang.String scheduleUuid;
    /**
     * 用户id
     */
    @TableField("user_id")
    @ApiModelProperty(value = "用户id")
    private java.lang.String userId;

    @TableField("machine_time")
    @ApiModelProperty(value = "拟分配机时")
    private Integer machineTime;

    @TableField("image_id")
    @ApiModelProperty(value = "拟分配机时")
    private String imageId;

    /**
     * 用户名
     */
    @TableField("username")
    @ApiModelProperty(value = "用户名")
    private java.lang.String userName;
    /**
     * 申请的gpu卡数
     */
    @TableField("gpu_num")
    @ApiModelProperty(value = "申请的gpu卡数")
    private java.lang.Integer gpuNum;

    /**
     * 审批状态
     */
    @TableField("approve_status")
    @ApiModelProperty(value = "审批状态(0待审核，1未通过审核，2通过审核)")
    private java.lang.Integer approveStatus;
    /**
     * 申请事由
     */
    @TableField("reason")
    @ApiModelProperty(value = "申请事由")
    private java.lang.String reason;

    @TableField("reviewer_id")
    @ApiModelProperty(value = "审批人ID")
    private java.lang.String reviewerId;

    @TableField("reviewer")
    @ApiModelProperty(value = "审批人用户名")
    private java.lang.String reviewer;

    @TableField("review_msg")
    @ApiModelProperty(value = "审批结论")
    private String reviewMsg;

    @TableField("name")
    @ApiModelProperty(value = "容器名称")
    private String name;

    @TableField("description")
    @ApiModelProperty(value = "容器描述")
    private String description;
}
